package org.fisco.bcos.asset.resp;


import java.math.BigInteger;

public class ProjectDetail {
    private String projectName;        // 项目名称
    private String description;        // 项目描述
    private String beneficiaryAddress; // 受益人地址
    private BigInteger targetAmount;   // 目标金额
    private BigInteger currentAmount;  // 当前金额
    private BigInteger status;         // 项目状态
    private Boolean isCompleted;       // 是否完成

    // 构造函数
    public ProjectDetail() {
    }

    public ProjectDetail(String projectName, String description, String beneficiaryAddress,
                         BigInteger targetAmount, BigInteger currentAmount, BigInteger status, Boolean isCompleted) {
        this.projectName = projectName;
        this.description = description;
        this.beneficiaryAddress = beneficiaryAddress;
        this.targetAmount = targetAmount;
        this.currentAmount = currentAmount;
        this.status = status;
        this.isCompleted = isCompleted;
    }

    // Getter 和 Setter 方法
    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getBeneficiaryAddress() {
        return beneficiaryAddress;
    }

    public void setBeneficiaryAddress(String beneficiaryAddress) {
        this.beneficiaryAddress = beneficiaryAddress;
    }

    public BigInteger getTargetAmount() {
        return targetAmount;
    }

    public void setTargetAmount(BigInteger targetAmount) {
        this.targetAmount = targetAmount;
    }

    public BigInteger getCurrentAmount() {
        return currentAmount;
    }

    public void setCurrentAmount(BigInteger currentAmount) {
        this.currentAmount = currentAmount;
    }

    public BigInteger getStatus() {
        return status;
    }

    public void setStatus(BigInteger status) {
        this.status = status;
    }

    public Boolean getIsCompleted() {
        return isCompleted;
    }

    public void setIsCompleted(Boolean isCompleted) {
        this.isCompleted = isCompleted;
    }

    @Override
    public String toString() {
        return "ProjectDetail{" +
                "projectName='" + projectName + '\'' +
                ", description='" + description + '\'' +
                ", beneficiaryAddress='" + beneficiaryAddress + '\'' +
                ", targetAmount=" + targetAmount +
                ", currentAmount=" + currentAmount +
                ", status=" + status +
                ", isCompleted=" + isCompleted +
                '}';
    }
}